package com.yami.shop.bean.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 解锁记录
 * </p>
 *
 * @author chajiu
 * @since 2021-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ch_unlock_record")
@ApiModel(value="UnlockRecord对象", description="解锁记录")
public class UnlockRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    @ApiModelProperty(value = "上级用户名称")
    private String uppName;

    @TableField(exist = false)
    @ApiModelProperty(value = "当前用户名称")
    private String Name;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户")
    private User user;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "谁解锁的人id")
    private String fromUserId;

    @ApiModelProperty(value = "被解锁的人id")
    private String unlockedUserId;

    @TableField(exist = false)
    @ApiModelProperty(value = "被解锁的人名称")
    private String unlockedUserName;

    @TableField(exist = false)
    @ApiModelProperty(value = "被解锁的人头像")
    private String unlockedUserPic;

    @ApiModelProperty(value = "解锁过期时间")
    private Date passedTime;

    @ApiModelProperty(value = "解锁类型 1vip 2钻石 3注册礼 4邀请礼")
    private Integer unlockType;

    @ApiModelProperty(value = "解锁时间")
    private Date unlockTime;

    @ApiModelProperty(value = "解锁价格")
    private BigDecimal unlockPrice;

    @ApiModelProperty(value = "解锁状态 1未过期 2已过期")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty(value = "距离")
    private Double distance;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否解锁了该用户，1为已解锁，2为未解锁或解锁已过期")
    private Integer unlStatus;


}
